/**
 * Created by qiangjindong
 * 2018-08-25 09:40
 */
public class Person {

    private Integer age;
    private String name;

    public Person(Integer age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void introduce() {
        System.out.println("My name is " + name + ", and I am " + age + " years old");
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
